import React, { Component } from 'react'
import RouterView from '../router/routerView'
import routerList from '../router/routerLIst'
import Footer from '../components/footer'
import {Route,Redirect,Switch} from "react-router-dom"
import Home from './home'
import Shopcar from './shopcar'
import Address from "./address"
import Form from "../views/form"
import Header from '../components/header'
 class App extends Component {
  render() {
    return (
      <div className='appwrap'>
          <div className='connect'>
                <Header></Header>
                <RouterView RouterList={routerList}></RouterView>
              {/* <Switch>
                  <Route path="/home" component={Home}></Route>
                  <Route path="/shopcar" component={Shopcar}></Route>
                  <Route path="/address" component={Address}></Route>
                  <Route path="/form" component={Form}></Route>

                  <Redirect from="/" to="/home"></Redirect>
              </Switch> */}
             
          </div>
          <Footer></Footer>
      </div>
    )
  }
}

export default App